package com.vogue.supplymall.admin.business.domain.dao.impl;

import com.vogue.supplymall.admin.business.domain.dao.AdminPrivatePlatformDao;
import com.vogue.supplymall.admin.business.domain.mapper.AdminPrivatePlatformMapper;
import com.vogue.supplymall.admin.business.domain.model.AdminPrivatePlatform;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;;

/**
 * The type Admin private platform dao.
 *
 * @author zhangliang
 * @date Create in 2018-07-09
 */
@Repository("adminPrivatePlatformDao")
public class AdminPrivatePlatformDaoImpl extends BaseDaoImpl<AdminPrivatePlatform, Long> implements AdminPrivatePlatformDao {
    @Resource
    private AdminPrivatePlatformMapper adminPrivatePlatformMapper;

    @Override
    public List<AdminPrivatePlatform> getPrivatePlatformInfo(Long tendId) {

        if (null == tendId) {
            return adminPrivatePlatformMapper.findPrivatePlatformBySql();
        }
        return new ArrayList<>();
    }
}
